package com.jr.pojo;

import java.math.BigDecimal;

/**
 * 服务搜索结果实体类
 * 用于返回服务搜索的联查结果
 */
public class ServiceSearchResult {
    private Integer serviceTypeId;
    private String serviceName;
    private BigDecimal basePrice;
    private String priceUnit;
    private Integer providerId;
    private String businessName;
    private String serviceArea;
    private String businessAddress;
    private BigDecimal rating;
    private Integer reviewCount;
    private Integer capacity;

    // 构造函数
    public ServiceSearchResult() {}

    public ServiceSearchResult(Integer serviceTypeId, String serviceName, BigDecimal basePrice, 
                              String priceUnit, Integer providerId, String businessName, 
                              String serviceArea, String businessAddress, BigDecimal rating) {
        this.serviceTypeId = serviceTypeId;
        this.serviceName = serviceName;
        this.basePrice = basePrice;
        this.priceUnit = priceUnit;
        this.providerId = providerId;
        this.businessName = businessName;
        this.serviceArea = serviceArea;
        this.businessAddress = businessAddress;
        this.rating = rating;
    }

    // Getter和Setter方法
    public Integer getServiceTypeId() {
        return serviceTypeId;
    }

    public void setServiceTypeId(Integer serviceTypeId) {
        this.serviceTypeId = serviceTypeId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public BigDecimal getBasePrice() {
        return basePrice;
    }

    public void setBasePrice(BigDecimal basePrice) {
        this.basePrice = basePrice;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public Integer getProviderId() {
        return providerId;
    }

    public void setProviderId(Integer providerId) {
        this.providerId = providerId;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public String getServiceArea() {
        return serviceArea;
    }

    public void setServiceArea(String serviceArea) {
        this.serviceArea = serviceArea;
    }

    public String getBusinessAddress() {
        return businessAddress;
    }

    public void setBusinessAddress(String businessAddress) {
        this.businessAddress = businessAddress;
    }

    public BigDecimal getRating() {
        return rating;
    }

    public void setRating(BigDecimal rating) {
        this.rating = rating;
    }

    public Integer getReviewCount() {
        return reviewCount;
    }

    public void setReviewCount(Integer reviewCount) {
        this.reviewCount = reviewCount;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "ServiceSearchResult{" +
                "serviceTypeId=" + serviceTypeId +
                ", serviceName='" + serviceName + '\'' +
                ", basePrice=" + basePrice +
                ", priceUnit='" + priceUnit + '\'' +
                ", providerId=" + providerId +
                ", businessName='" + businessName + '\'' +
                ", serviceArea='" + serviceArea + '\'' +
                ", businessAddress='" + businessAddress + '\'' +
                ", rating=" + rating +
                ", reviewCount=" + reviewCount +
                ", capacity=" + capacity +
                '}';
    }
}
